<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<link rel="stylesheet"
			href="${pageContext.request.contextPath }/css/base.css" />
		<link rel="stylesheet"
			href="${pageContext.request.contextPath }/css/info-reg.css" />
		<script type="text/javascript"
			src="${pageContext.request.contextPath }/js/jquery.js"></script>
		<script type="text/javascript"
			src="${pageContext.request.contextPath }/js/common.js"></script>
		<script type="text/javascript"
			src="${pageContext.request.contextPath }/js/WdatePicker.js"></script>

		<title>添加公共资源</title>
	</head>
	<body>
		<form
			action="${pageContext.request.contextPath}/ComMethod.action?method=applyAddCom"
			method="post">
			<div class="title">
				<h2>
					添加公共资源
				</h2>
			</div>
			<div class="main">
				<p class="long-input ue-clear">
					<label>
						物品名称：
					</label>
					<input type="text" placeholder="物品名称" name="cr_name" />
					<input type="hidden" name="type" value="新增"/>
				</p>
				<p class="long-input ue-clear">
					<label>
						物品价格：
					</label>
					<input type="text" placeholder="请输入价格" name="price" />
				</p>
				<p class="long-input ue-clear">
					<label>
						物品类型：
					</label>
					<input type="radio" name="comtype" value="办公用品" checked="checked"/><span style="color:black">办公用品</span>
					<input type="radio" name="comtype" value="公共资源"/><span style="color:black">公共资源</span>
				</p>
				<p class="long-input ue-clear">
					<label>
						物品数量：
					</label>
					<input type="text" placeholder="请输入数量" name="num" />
				</p>
			</div>
			<div class="btn ue-clear">
				<input type="submit" value="提交申请"/>
				<input type="button" onclick="upback()" value="返回"/>
			</div>
		</form>
	</body>
	<script type="text/javascript">
	function upback() {
		var url = "${pageContext.request.contextPath }/ComMethod.action?method=selectCom";
		window.location.href = url;
	}
</script>
</html>
